package com.izliang.user.serviceImp;

import model.User;
import org.apache.dubbo.config.annotation.Service;
import service.UserService;
import java.util.UUID;

@Service()

public class UserServiceImp implements UserService {
    @Override
    public User findUserInfoById(int userID) {

        User user = new User();
        user.setMoney(1000);
        user.setNickName(UUID.randomUUID().toString());
        user.setUserId(1);
        return user;
    }

    @Override
    public void subUserMoney() {
        int i = 0;
        int j = 10;
        System.out.println(i/i);
        System.out.println("去掉用户金钱");
    }
}
